<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			// filter过滤器,返回true和false
			let arr = [10,11,3,9,12,22];
			// let result = arr.filter(function(item){
			// 	return item%3==0;
			// })
			let result = arr.filter(item=>item%3==0)
			console.log(result);
			// 返回价格大于10000的
			let all = [
				{name:'duli',price:12000},
				{name:'duqin',price:20000},
				{name:'chen',price:2000}
			];
			let result2 = all.filter(json=>json.price>10000);
			console.log(result2);
		</script>
	</head>
	<body>
	</body>
</html>
